
#include "cpuMemInfo.h"
#include <QtGlobal>

#ifdef Q_OS_WIN
#include "cpuMemInfoWin.h"
#elif defined(Q_OS_MAC)
#include "cpuMemInfoMac.h"
#elif defined(Q_OS_LINUX)
#include "cpuMemInfoLinux.h"
#endif

cpuMemInfo& cpuMemInfo::instance()
{
#ifdef Q_OS_WIN
    static cpuMemInfoWin inst;
#elif defined(Q_OS_MAC)
    static cpuMemInfoMac inst;
#elif defined(Q_OS_LINUX)
    static cpuMemInfoLinux inst;
#endif
    return inst;
}

cpuMemInfo::cpuMemInfo(){}
cpuMemInfo::~cpuMemInfo(){}

double cpuMemInfo::usedSwap()
{
    return -1;
}

double cpuMemInfo::totalSwap()
{
    return -1;
}
